﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace _537_App_Store.Form
{
    /// <summary>
    /// WebSite_Detailswindow.xaml 的交互逻辑
    /// </summary>
    public partial class WebSite_Detailswindow : Window
    {
        public WebSite_Detailswindow(_537AppStore_API.Model.Website website)
        {
            InitializeComponent();
            WebSite_Name.Text = "网页名称："+website.Name;
            WebSite_IconURL.Source = new BitmapImage(new Uri(website.Icon));
            WebSite_URL.Text = "网址："+website.Url;
            WebSite_Category.Text = "分类："+website.Category;
            WebSite_Description.Text = "描述：" + website.Description;
            WebSite_Author.Text ="上传者："+ website.Author;
            WebSite_UploadTime.Text ="上传时间："+ website.CreateTime.ToString();
            WebSite_ID.Text ="ID:"+ website.id.ToString();

        }
    }
}
